<template>
  <div class="goods">
    <good-item v-for="(item,index) in goods" :key="index" :good="item"/>
  </div>
</template>

<script>
import GoodItem from './GoodItem.vue';
export default {
  components: { GoodItem },
  name: "",
  props:{
    goods:{
      type:Array,
      default(){
        return []
      }
    }
  },
  data() {
    return {
      
    };
  },
  methods: {
    to_goods() {
      this.$router.push("/goods");
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.goods {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-around; */
}
</style>
